﻿
IF  EXISTS (SELECT * FROM sys.objects WHERE object_id = OBJECT_ID(N'[dbo].[sproc_CM_GetCooperaterByClientID]') AND type in (N'P', N'PC'))
    DROP PROCEDURE [dbo].[sproc_CM_GetCooperaterByClientID];
GO
CREATE PROCEDURE [dbo].[sproc_CM_GetCooperaterByClientID]
@clientid int

AS

    SELECT * FROM UDS_CM_ClientContact_Cooperatingman,uds_CM_ClientContact
    where UDS_CM_ClientContact.ID = UDS_CM_ClientContact_Cooperatingman.ContactID
    AND UDS_CM_ClientContact.ClientID=@clientid